package org.stu.tp.testCases.userInfo;

import org.stu.tp.core.DefaultAjaxSelenium;
import org.stu.tp.dto.User;

public class UserInfoAction extends UserInfoSac {
	
	public void setAllInfo(DefaultAjaxSelenium selenium,User user){
		setPass(selenium, user.getPass());
		setConPass(selenium, user.getConPass());
		setEamil(selenium, user.getEmail());
		setAddress(selenium, user.getAddress());
	}
	
	public User getAllInfo(DefaultAjaxSelenium selenium,User user){
		user.setLoginId(this.getLoginId(selenium));
		user.setName(this.getName(selenium));
		user.setEmail(this.getEmail(selenium));
		user.setAddress(this.getAddress(selenium));
		return user;
	}
}
